<template>
  <div>
    <DrillsHosted/>
    <upload ref="upload" @file="file">
      <template slot="but" slot-scope="scope">上传文件2{{scope.row}}</template>
    </upload>
    <item :list="list"></item>
  </div>
</template>

<script>
import upload from "./upload.vue"
import DrillsHosted from "../../component/DrillsHosted"
export default {
  components: {
    upload,DrillsHosted

  },
  data() {
    return {
      list: [
        {
          name: 1,
          age: 2,
          child: [
            {
              name: 2,
              age: 3,
              child: [
                {
                  name: 3,
                  age: 4
                }
              ]
            }
          ]
        },
        {
          name: 11,
          age: 11,
          child: [
            {
              name: 111,
              age: 1111
            }
          ]
        }
      ]
    }
  },
  methods: {
    upload() {},
    file(e, list) {
      console.log(e, list)
    }
  }
}
</script>

<style>
</style>